package com.ybServer.dao;

import com.ybServer.model.ActivityData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityDAO {
    void addActivity(ActivityData activityData) throws Exception;

    void addActivityImage(@Param("activityId") String activityId, @Param("fileName") String fileName) throws Exception;

    List<ActivityData> selectActivityByCategory(@Param("category") String category, @Param("lastId") long lastId) throws Exception;

    List<ActivityData> selectActivityByUserId(@Param("userId") String userId, @Param("lastId") long lastId) throws Exception;

    List<String> selectActivityImage(Long activityId) throws Exception;

    List<ActivityData> queryHotActivity() throws Exception;
}
